#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>


#define NAME_MAX 10
#define SEX_MAX 5
#define TELE_MAX 13
#define ADDR_MAX 30
#define MAX 100

typedef struct PeoInfor
{
	char name[NAME_MAX];
	int age;
	char sex[SEX_MAX];
	char tele[TELE_MAX];
	char addr[ADDR_MAX];
}PeoInfor;

typedef struct contact
{
	PeoInfor data[MAX];
	int sz;
}contact;

enum OPTION
{
	EXIT,
	ADD,
	DEL,
	SERCH, 
	MODIFY, 
	SHOW,
	EPY,
	SORT
};



void InitContact(contact* pc);

void AddContact(contact* pc);

void DelContact(contact* pc);

void SerchContact(const contact* pc);

void ModifyContact(contact* pc);

void ShowContact(const contact* pc);

void EpyContact(contact* pc);

void SortContact(contact* pc);